Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix packet leak bug #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

crazycat256
Copy link
Contributor

Currently, when a player logs in, they receive a NAMED_ENTITY_SPAWN packet for all players around them, even vanished players. This allows players using appropriate mods to know if there are vanished players around them.

This PR solves this problem by blocking the packet if the player is vanished.

@LeonMangler
Copy link
Owner

Thank your for the PR! This is going in an interesting direction. However, the NAMED_ENTITY_SPAWN packet has changed several times since 1.7, so it is probably not going to work on older versions. Perhaps we need to make it e.g. a 1.20+ feature. Also currently this only checks the sv.see permission but does not account for layered permissions (sv.see.levelX, sv.use.levelX).

@crazycat256
Copy link
Contributor Author

I've fixed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants